<template>
	<view>
		<image class="fullscreen-image" src="https://pic.imgdb.cn/item/672c77bcd29ded1a8cf43059.png"></image>
	</view>
	<view>
		<view class="header">
			<text class="titles">精彩推荐</text>
		</view>
		<piaoyiSwiper :imgList="imgList" :itemMargin="30" :autoplay="false" :interval="3000" :duration="1000" />
	</view>
	<view style="margin-top: 5px;">
		<fui-panel :panelData="panelData" :marginTop="24" :size="32"></fui-panel>
	</view>
</template>

<script>
	import piaoyiSwiper from '@/components/piaoyi-swiper/piaoyi-swiper.vue';
	import {
		url
	} from '@/utils/request.js';
	import {
		jerrybanner
	} from '@/components/jerry-banner/jerry-banner.vue'
	import {
		onLoad,
		onUnload
	} from '@dcloudio/uni-app';
	export default {
		components: {
			piaoyiSwiper,
		},
		data() {
			return {
				panelData: {
					list: [{
							src: 'https://m.firstui.cn/static/images/common/img_logo.png',
							title: 'First UI组件库',
							desc: 'First UI组件库，是基于uni-app开发的一款轻量、全面可靠的跨平台移动端组件库。',
							source: '￥18',
							time: '2021-08-09'
						}, {
							src: 'https://m.firstui.cn/static/images/common/img_logo.png',
							title: 'First UI跨平台UI组件库',
							desc: 'First UI组件库，是基于uni-app开发的一款轻量、全面可靠的跨平台移动端组件库。',
							source: '￥18',
							time: '2021-08-09',

						},
						{
							src: 'https://m.firstui.cn/static/images/common/img_logo.png',
							title: 'First UI跨平台UI组件库',
							desc: 'First UI组件库，是基于uni-app开发的一款轻量、全面可靠的跨平台移动端组件库。',
							source: '￥18',
							time: '2021-08-09',

						},
						{
							src: 'https://m.firstui.cn/static/images/common/img_logo.png',
							title: 'First UI跨平台UI组件库',
							desc: 'First UI组件库，是基于uni-app开发的一款轻量、全面可靠的跨平台移动端组件库。',
							source: '￥18',
							time: '2021-08-09',

						},
						{
							src: 'https://m.firstui.cn/static/images/common/img_logo.png',
							title: 'First UI跨平台UI组件库',
							desc: 'First UI组件库，是基于uni-app开发的一款轻量、全面可靠的跨平台移动端组件库。',
							source: '￥18',
							time: '2021-08-09',

						},
						{
							src: 'https://m.firstui.cn/static/images/common/img_logo.png',
							title: 'First UI跨平台UI组件库',
							desc: 'First UI组件库，是基于uni-app开发的一款轻量、全面可靠的跨平台移动端组件库。',
							source: '￥18',
							time: '2021-08-09',

						}
					]
				},
				imgList: [
					'https://bpic.588ku.com/illus_water_img/21/02/01/7a0c6fb4e2842b635dccbc56ca8f1514.jpg!/fw/750/quality/99/unsharp/true/compress/true',
					'https://mz2.eastday.com/images/17297855/56cddfc96c8145889ed53b2a44cce9fb.jpeg',
					'https://img2.gujianchina.cn/201905/08/141817456876.png',
				],
			}
		},
		methods: {

		}
	}
</script>

<style>
	.fullscreen-image {
		width: 100vw;
		height: 200px;
		object-fit: cover;
		/* 确保图片填满屏幕且保持比例 */
	}

	.header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding-bottom: 10rpx;
	}

	.title-large {
		font-size: 36rpx;
		font-weight: bold;
		padding: 5px;
		color: #4a3f36;
	}

	.titles {
		padding: 8px;
	}

	.date {
		font-size: 26rpx;
		color: #7a6b60;
	}
</style>